/**
 * @StringBeanDemo.java  COPYRIGHT xiaojian
 * 
 * Created on 2019年1月14日 下午8:54:44
 */
package xj.toolkit.bean.bytebean;

import org.apache.commons.lang3.builder.ToStringBuilder;

import xj.toolkit.bean.bytebean.annotation.ByteBeanField;

/**
 * @author <a href="mailto:cxj2000@gmail.com">xiaojian.cao</a>
 *
 */
public class StringBeanDemo {
	
	@ByteBeanField(index = 1, bytes = 2)
	public int nameLen = 0;

	@ByteBeanField(index = 2, lenField = "nameLen", charset = "UTF-8")
	public String name = null;
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
